package com.ruiysoft.crm.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 车辆信息表
 *
 * @author fanyl
 * @date 2019-04-14 12:56:01
 */
@Data
@Accessors(chain = true)
@TableName(value = "biz_car_info")
public class BizCarInfo extends Model<BizCarInfo> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 车牌号
     */
    @TableField(value = "car_no", exist = true)
    private String carNo;
    /**
     * 车架号
     */
    @TableField(value = "vehicle_no", exist = true)
    private String vehicleNo;
    /**
     * 发动机号
     */
    @TableField(value = "engine_number", exist = true)
    private String engineNumber;
    /**
     * 初登日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "first_registration_date", exist = true)
    private LocalDateTime firstRegistrationDate;
    /**
     * 初登日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "insEndDate", exist = true)
    private LocalDateTime insEndDate;
    /**
     * 车辆类型:营运货车,家庭自用客车,需要有字典表
     */
    @TableField(value = "vehicle_type", exist = true)
    private String vehicleType;
    /**
     * 厂牌型号
     */
    @TableField(value = "factory_plate_model", exist = true)
    private String factoryPlateModel;
    /**
     * 营业性质:营运非营运,营业客车
     */
    @TableField(value = "vehicle_usage", exist = true)
    private String vehicleUsage;
    /**
     * 新车购置价
     */
    @TableField(value = "price", exist = true)
    private BigDecimal price;
    /**
     * 排量
     */
    @TableField(value = "displacement", exist = true)
    private Float displacement;
    /**
     * 座位数
     */
    @TableField(value = "seating", exist = true)
    private Integer seating;
    /**
     * 车主姓名
     */
    @TableField(value = "car_owner", exist = true)
    private String carOwner;
    /**
     * 客户Id
     */
    @TableField(value = "client_id", exist = true)
    private Integer clientId;
    /**
     * 创建时间
     */
    @TableField(value = "create_date", exist = true)
    private LocalDateTime createDate;
    /**
     * 修改时间
     */
    @TableField(value = "modification_date", exist = true)
    private LocalDateTime modificationDate;
    /**
     * 机构Code
     */
    @TableField(value = "org_code", exist = true)
    private String orgCode;
    /**
     * 整备质量
     */
    @TableField(value = "curb_weight", exist = true)
    private BigDecimal curbWeight;
    /**
     * 总质量
     */
    @TableField(value = "gross_vehicle_weight", exist = true)
    private BigDecimal grossVehicleWeight;
    /**
     * 机构编码
     */
    @TableField(value = "enterprise_id", exist = true)
    private String enterpriseId;

}